package org.sws.infrastructure.persistent.dao;

import cn.bugstack.middleware.db.router.annotation.DBRouter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.sws.infrastructure.persistent.po.Task;

import java.util.List;

/**
 * @author songwenshuai
 * @description 任务表，发送MQ
 */
@Mapper
public interface ITaskDao {

    void insert(Task taskEntity);

    @DBRouter
    void updateTaskSendStatus(Task task);

    List<Task> queryNoSendMessageTaskList();

    void insertBatch(@Param("taskList") List<Task> taskList);
}
